import { RequestHandler } from "express";
import { CrowllerController, LoginController } from "../controller";

export function use(middleware: RequestHandler) {
    return function (target: CrowllerController | LoginController, key: any) {
        Reflect.defineMetadata('middleware', middleware, target, key);
    }
}
